package main

import (
	"fmt"
	"math/rand"
	"time"
)

func main() {

	//os.Setenv("GODEBUG", "randautoseed=0")
	// var seed int64 = time.Now().UnixNano()
	// src := rand.NewSource(seed)
	// r := rand.New(src)

	r := rand.New(rand.NewSource(time.Now().UnixNano()))
	for i := 0; i < 5; i++ {
		fmt.Println(i, r.Intn(10), rand.Intn(10)) //Intn [0, 10) 前包後不包 [0, 9] golang 1.20+ , 兩golang 1.20
	}

}
